<template>
  <div class="shopdetail">
    <div class="navtitle">
      <span  @click="cur=1" :class="{sp1:true,actshow:cur==1}">商品详情</span>
      <span  @click="cur=0" :class="{sp2:true,actshow:cur==0}">买家口碑</span>
    </div>
    <div class="imgshow" v-show="cur==1">
      <img src="/static/img/deimg.png"/>
      <img src="/static/img/deimg2.png"/>
      <img src="/static/img/deimg3.png"/>
      <img src="/static/img/deimg4.png"/>
    </div>
    <div class="comment" v-show="cur==0">
      <div class="com_title">
        <span class="spact">全部评价</span>
        <span>好评</span>
        <span>差评</span>
        <span>晒单</span>
      </div>
      <ul class="usercomment">
        <li>
          <div class="title">
            <span class="name">月色花香</span>
            <span class="time">2015-10-03 21:47:13</span>
          </div>
          <div class="toupic">
            <img src="/static/img/tou.jpg"/>
          </div>
          <div class="tips">已经开始喝第二阶段的奶粉了，会继续支持德贝</div>
          <div class="maijiatips">
            <span>管理员：亲爱的用户，已返现到您的会员账户，感谢你对德贝的支持，我们会继续给 您带来最极致的服务</span>
          </div>
        </li>
        <li>
          <div class="title">
            <span class="name">月色花香</span>
            <span class="time">2015-10-03 21:47:13</span>
          </div>
          <div class="toupic">
            <img src="/static/img/tou.jpg" />
          </div>
          <div class="tips">已经开始喝第二阶段的奶粉了，会继续支持德贝</div>
          <div class="maijiatips">
            <span>管理员：亲爱的用户，已返现到您的会员账户，感谢你对德贝的支持，我们会继续给 您带来最极致的服务</span>
          </div>
        </li>
        <li>
          <div class="title">
            <span class="name">月色花香</span>
            <span class="time">2015-10-03 21:47:13</span>
          </div>
          <div class="toupic">
            <img src="/static/img/tou.jpg" />
          </div>
          <div class="tips">已经开始喝第二阶段的奶粉了，会继续支持德贝</div>
          <div class="maijiatips">
            <span>管理员：亲爱的用户，已返现到您的会员账户，感谢你对德贝的支持，我们会继续给 您带来最极致的服务</span>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Detail',
  data () {
    return {cur: 1}
  }
}
</script>

<style lang="less" scoped>
.shopdetail {
  width: 100%;
  height: auto;
  background: #ffffff;
  margin-top: 0.4rem;
  .navtitle {
    height: 1.093333rem;
    margin: 0 0.6rem;
    overflow: hidden;
    span {
      width: 2.066667rem;
      height: 0.8rem;
      line-height: 0.8rem;
      display: block;
      text-align: center;
      font-size: 0.346667rem /* 26/75 */;
    }
    .actshow {
      color: #ff9900;
      border-bottom: 1px solid #ff9900;
    }
    .sp1 {
      margin-left: 0.933333rem;
      float: left;
    }
    .sp2 {
      margin-right: 0.933333rem;
      float: right;
    }
  }
}
.imgshow {
  img {
    display: block;
    margin: 0 auto;
  }
}
.comment {
  margin: 0 0.4rem;
  .com_title {
    height: 1rem;
    border-bottom: 1px solid #888888;
    span {
      width: 1.8rem;
      height: 0.666667rem;
      display: inline-block;
      border-radius: 0.666667rem;
      background: #999999;
      color: #ffffff;
      text-align: center;
      line-height: 0.666667rem;
      margin-right: 0.5rem;
    }
    span:last-of-type {
      margin-right: 0;
    }
    .spact {
      background: #ff9900;
    }
  }
  .usercomment {
    width: 100%;
    background: #ffffff;
    list-style: none;
    li {
        padding-bottom:.25rem;
        border-bottom: 1px solid #666666;
      .title {
        height: 0.866667rem;
        line-height: 0.866667rem;
        span {
          display: block;
        }
        .name {
          float: left;
          color: #ff9900;
          font-size: 0.316rem;
        }
        .time {
          float: right;
          font-size: 0.2396rem;
          color: #999999;
        }
      }
      .toupic {
        width: 2rem;
        height: 2rem;
      }
      .tips {
        width: 100%;
        font-size: 0.266267rem;
        color: #999999;
        line-height: 0.533333rem;
      }
      .maijiatips {
        width: 100%;
        height: 1rem;
        border-radius: 0.133333rem;
        background: #dddddd;
        span {
          font-size: 0.3rem;
          line-height: .43rem;
        }
      }
    }
  }
}
</style>
